
package jfireeagle;

import java.util.*;

public class Response
{
	private String stat;
	private User user;
	private List<User> users = new ArrayList<User>();
	private String query;
	private Locations locations;
	
	private String xml;
	
	public Response()
	{
		super();
	}

	public String getStat()
	{
		return stat;
	}

	public void setStat(String stat)
	{
		this.stat = stat;
	}

	public User getUser()
	{
		return user;
	}

	public void setUser(User u)
	{
		this.user = u;
	}
	
	public void addUser(User u)
	{
		this.users.add(u);
	}
	
	public void setUsers(List<User> l)
	{
		this.users = l;
	}
	
	public List<User> getUsers()
	{
		return users;
	}

	public String getXml()
	{
		return xml;
	}
	
	public void setXml(String s)
	{
		xml = s;
	}

	public String getQuery()
	{
		return query;
	}

	public void setQuery(String q)
	{
		this.query = q;
	}

	public Locations getLocations()
	{
		return this.locations;
	}
	
	public void setLocations(Locations locs)
	{
		this.locations = locs;
	}

	public String toString()
	{
		return getXml();
	}
	
	public boolean isOK()
	{
		return "ok".equalsIgnoreCase(this.getStat());
	}
}
